package cn.jimmie.learn.viewArt.fragment

import android.content.Intent
import android.view.View
import cn.jimmie.learn.viewArt.ListRefreshViewActivity
import cn.jimmie.learn.viewArt.R
import cn.jimmie.learn.viewArt.RecyclerRefreshViewActivity
import cn.jimmie.learn.viewArt.ScrollRefreshViewActivity
import kotlinx.android.synthetic.main.fragment_freshview.view.*

class RefreshViewFragment : BaseFragment() {

    override fun initView(root: View) {
        root.refresh_list.setOnClickListener {
            startActivity(Intent(activity, ListRefreshViewActivity::class.java))
        }

        root.refresh_recycler.setOnClickListener {
            startActivity(Intent(activity, RecyclerRefreshViewActivity::class.java))
        }

        root.refresh_scroll.setOnClickListener {
            startActivity(Intent(activity, ScrollRefreshViewActivity::class.java))
        }
    }

    override fun layoutId(): Int = R.layout.fragment_freshview

}